From d589170754af9620feabb0e598b626116470557f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 10 Nov 2015 13:49:11 +0000 Subject: [PATCH] Only include the necessary headers in GtkPlacesViewRow When compiling inside GTK we also use the GTK_COMPILATION guard, as the GtkPlacesView and GtkPlacesViewRow widgets are shared with Nautilus. --- gtk/gtkplacesviewrow.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gtk/gtkplacesviewrow.c b/gtk/gtkplacesviewrow.c index 3466053e4f..e8ac7a8d6c 100644 --- a/gtk/gtkplacesviewrow.c +++ b/gtk/gtkplacesviewrow.c @@ -19,11 +19,24 @@ #include "config.h" #include -#include -#include "gtkintl.h" #include "gtkplacesviewrowprivate.h" + +/* As this widget is shared with Nautilus, we use this guard to + * ensure that internally we only include the files that we need + * instead of including gtk.h + */ +#ifdef GTK_COMPILATION +#include "gtkbutton.h" +#include "gtkeventbox.h" +#include "gtkimage.h" +#include "gtkintl.h" +#include "gtklabel.h" +#include "gtkspinner.h" #include "gtktypebuiltins.h" +#else +#include +#endif struct _GtkPlacesViewRow { -- 2.30.2